import request from "@/utils/requestBase";

/**
 * @description 办事咨询列表-民警端
 */
export function listPagePolice(data: any) {
  return request.get({
    url: "/consult/listPagePolice",
    data,
  });
}

/**
 * @description 新增办事咨询
 */
export function addConsultation(data: any) {
  return request.post({
    url: "/consult/add",
    data,
  });
}
export function snapshotadd(data: any) {
  return request.post({
    url: "/snapshot/add",
    data,
  });
}

/**
 * @description 历史办事咨询列表
 */
export function listConsultation(data: any) {
  return request.get({
    url: "/consult/listPage",
    data,
  });
}

/**
 * @description 删除办事咨询
 */
export function delConsultation(ids: any) {
  return request.del({
    url: `/consult/delete/${ids}`,
  });
}

/**
 * @description 状态变更
 */
export function updateHandleStatus(data: any) {
  return request.put({
    url: `/consult/updateHandleStatus`,
    data,
  });
}
